You are here: Symbol Reference > Dew Namespace > Dew.Math Namespace > Classes > TMtxInt Class > TMtxInt Methods > SetCol Method > TMtxInt.SetCol Method ([In] TMtxVecInt, int)
Dew Math for .NET
ContentsIndexHome
PreviousUpNext
TMtxInt.SetCol Method ([In] TMtxVecInt, int)

Copies values from vector to matrix column.

Syntax
C#
Visual Basic
public TMtxInt SetCol([In] TMtxVecInt Vec, int Col);

Copy all Vec elements to the calling matrix Col column. An exception is raised, if array bounds are overrun.

var A: TMtxInt; V: TVecInt; begin CreateIt(A); CreateIt(V); try A.Size(2,1); V.SetIt([1,2, 2,4]); A.SetCol(V,0); finally FreeIt(V); FreeIt(A); end; end;
Copyright (c) 1999-2024 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!